<?php
/**
 * Created by PhpStorm.
 * User: XD
 * Date: 2017/10/26
 * Time: 14:14
 */
namespace App\Http\Controllers\Sql;

use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;

class UserController extends Controller
{
    public function index()
    {
        $users = DB::select('select * from users where active = ?', [1]);

    }
}